package cn.com.w.common.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class BlogParam {
    /**
     * 标题
     */
    @ApiModelProperty(name = "title",value = "标题",required = true)
    private String title;
    /**
     * 内容
     */
    @ApiModelProperty(name = "content",value = "内容",required = true)
    private String content;
    /**
     * 标签
     */
    @ApiModelProperty(name = "tags",value = "标签",required = true)
    private List<Long> tags;
    /**
     * 分类
     */
    @ApiModelProperty(name = "type",value = "分类",required = true)
    private Long type;
    /**
     * 首图
     */
    @ApiModelProperty(name = "firstPicture",value = "首图",required = true)
    private String firstPicture;
    /**
     * 标记
     */
    @ApiModelProperty(name = "flag",value = "标记",required = true)
    private String flag;
    /**
     * 浏览量
     */
    @ApiModelProperty(name = "views",value = "浏览量",required = true)
    private Integer views = 0;
    /**
     * 赞赏开启
     */
    @ApiModelProperty(name = "appreciation",value = "赞赏",required = true)
    private boolean appreciation;//赞赏
    /**
     * 转载声明开启
     */
    @ApiModelProperty(name = "sahreStatement",value = "转载",required = true)
    private boolean shareStatement;//转载

    /**
     * 评论开启
     */
    private boolean commentabled;//是否开启评论
    /**
     * 发布
     */
    @ApiModelProperty(name = "published",value = "发布",required = true)
    private boolean published;//为1时发布,为0时保存
    /**
     * 推荐
     */
    @ApiModelProperty(name = "recommend",value = "推荐",required = true)
    private boolean recommend;//推荐
    /**
     * 描述
     */
    @ApiModelProperty(name = "description",value = "描述",required = true)
    private String description;//博客说明
}